.class Lcom/melesta/engine/FacebookOperations$5$1;
.super Ljava/lang/Object;
.source "FacebookOperations.java"

# interfaces
.implements Lcom/facebook/widget/WebDialog$OnCompleteListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/engine/FacebookOperations$5;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/melesta/engine/FacebookOperations$5;


# direct methods
.method constructor <init>(Lcom/melesta/engine/FacebookOperations$5;)V
    .locals 0
    .parameter

    .prologue
    .line 392
    iput-object p1, p0, Lcom/melesta/engine/FacebookOperations$5$1;->this$0:Lcom/melesta/engine/FacebookOperations$5;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method private onPosted(ZLjava/lang/String;II)V
    .locals 7
    .parameter "isPosted"
    .parameter "ids"
    .parameter "user_data"
    .parameter "callback"

    .prologue
    .line 403
    invoke-static {}, Lcom/melesta/engine/EngineActivity;->getInstance()Lcom/melesta/engine/EngineActivity;

    move-result-object v6

    new-instance v0, Lcom/melesta/engine/FacebookOperations$5$1$1;

    move-object v1, p0

    move v2, p1

    move-object v3, p2

    move v4, p3

    move v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/melesta/engine/FacebookOperations$5$1$1;-><init>(Lcom/melesta/engine/FacebookOperations$5$1;ZLjava/lang/String;II)V

    invoke-virtual {v6, v0}, Lcom/melesta/engine/EngineActivity;->runOnGLThread(Ljava/lang/Runnable;)V

    .line 409
    return-void
.end method


# virtual methods
.method public onComplete(Landroid/os/Bundle;Lcom/facebook/FacebookException;)V
    .locals 4
    .parameter "values"
    .parameter "error"

    .prologue
    .line 396
    if-nez p2, :cond_0

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Landroid/os/Bundle;->size()I

    move-result v2

    if-lez v2, :cond_0

    const/4 v1, 0x1

    .line 397
    .local v1, isPosted:Z
    :goto_0
    if-eqz v1, :cond_1

    #calls: Lcom/melesta/engine/FacebookOperations;->getUserIdsForWhomRequestWasSended(Landroid/os/Bundle;)Ljava/lang/String;
    invoke-static {p1}, Lcom/melesta/engine/FacebookOperations;->access$000(Landroid/os/Bundle;)Ljava/lang/String;

    move-result-object v0

    .line 398
    .local v0, ids:Ljava/lang/String;
    :goto_1
    iget-object v2, p0, Lcom/melesta/engine/FacebookOperations$5$1;->this$0:Lcom/melesta/engine/FacebookOperations$5;

    iget v2, v2, Lcom/melesta/engine/FacebookOperations$5;->val$user_data:I

    iget-object v3, p0, Lcom/melesta/engine/FacebookOperations$5$1;->this$0:Lcom/melesta/engine/FacebookOperations$5;

    iget v3, v3, Lcom/melesta/engine/FacebookOperations$5;->val$callback:I

    invoke-direct {p0, v1, v0, v2, v3}, Lcom/melesta/engine/FacebookOperations$5$1;->onPosted(ZLjava/lang/String;II)V

    .line 399
    return-void

    .line 396
    .end local v0           #ids:Ljava/lang/String;
    .end local v1           #isPosted:Z
    :cond_0
    const/4 v1, 0x0

    goto :goto_0

    .line 397
    .restart local v1       #isPosted:Z
    :cond_1
    const/4 v0, 0x0

    goto :goto_1
.end method
